package com.ssmTest.service.impl;

import com.ssmTest.dao.ISystemSetupDao;
import com.ssmTest.model.SystemSetup;
import com.ssmTest.service.ISystemSetupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("systemSetupService")
public class SystemSetupServiceImpl implements ISystemSetupService{
    @Autowired
    ISystemSetupService iSystemSetupService;
    @Resource
    ISystemSetupDao iSystemSetupDao;

    public SystemSetup getSystem(){
        List<SystemSetup> list;
        list = this.iSystemSetupDao.getSystem();
        SystemSetup systemSetup = list.get(0);
        return systemSetup;
    }
    public void updateSystem(SystemSetup systemSetup){
        this.iSystemSetupDao.updateSystem(systemSetup);
    }
}
